package com.andova.component.net;

import android.content.Context;

import java.lang.ref.WeakReference;

import androidx.annotation.NonNull;

/**
 * Created by Administrator on 2019-02-12.
 * <p>定义网络接口</p>
 *
 * @author kzaxil
 * @since 0.0.4
 */
public interface AndovaNetCall2<MODEL extends ResponseModel, REQUEST> {
    void request(@NonNull WeakReference<Context> context, AndovaNetCallback2<MODEL> callback, REQUEST request);

    REQUEST param();

    /**
     * 版本信息
     */
    String version();
}
